class Category < ActiveRecord::Base
  has_many :articles_categories,:class_name => "ArticlesCategories"
  has_many :articles, :through => :articles_categories,:source => :article

  def to_param
    permalink
  end

end
